/**
 * @version $Id: FoldAway.js 8 2009-02-25 05:28:17Z joomla@nik-it.de $
 * @package FoldAway
 * @author Nikolai Plath (elkuku) {@link http://www.nik-it.de NiK-IT.de}
 * @author Created on 09-Feb-2009
 */

function toggleFold(id) {
	container = document.getElementById('foldAway_' + id);
	title = document.getElementById('foldAwayTitle_' + id);

	title.title = 'Quellcode ansehen';

	if (container.style.display != 'none') {
		container.style.display = 'none';
		title.setAttribute('class', 'foldAwayTitle_closed_js');
	} else {
		container.style.display = '';
		title.setAttribute('class', 'foldAwayTitle_js');
	}
}// function
